﻿using System;
using System.Windows.Data;
using FileSquirrel.Logic;

namespace FSquirrel.Helpers
{
    [ValueConversion(typeof(string), typeof(string))]
    public class SeriesNameConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            FileNameHelper helper = new FileNameHelper(value.ToString());
            return helper.Show;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}